﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace database
{
    public partial class Control_Goods : UserControl
    {
        public Control_Goods()
        {
            InitializeComponent();
        }

        private void Control_Goods_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.panel2.Controls.Clear();
            Control_Goods_add cga = new Control_Goods_add();
            cga.Show();
            this.panel2.Controls.Add(cga);
        }

        private void panel2_Paint(object sender, PaintEventArgs e)
        {
        }

        private void button2_Click(object sender, EventArgs e)
        {

            this.panel2.Controls.Clear();
            Control_Goods_modify cgm = new Control_Goods_modify();
            cgm.Show();
            this.panel2.Controls.Add(cgm);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.panel2.Controls.Clear();
            Control_Goods_delete cgd = new Control_Goods_delete();
            cgd.Show();
            this.panel2.Controls.Add(cgd);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            this.panel2.Controls.Clear();
            Control_Goods_search cgs = new Control_Goods_search();
            cgs.Show();
            this.panel2.Controls.Add(cgs);
        }
    }
}
